<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>客户转入额</title>
    <link rel="icon" href="favicon.ico" type="images/ico">
    <meta name="author" content="dc">
    <link rel="stylesheet" type="text/css" href="/css/materialdesignicons.min.css">
    <link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="/css/animate.min.css">
    <link rel="stylesheet" type="text/css" href="/css/style.min.css">

    <link href="/js/bootstrap-table/bootstrap-table.min.css" rel="stylesheet" />
    <!--固定table列-->
    <link href="/js/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.min.css" rel="stylesheet"/>

    <link rel="stylesheet" href="/js/jquery-confirm/jquery-confirm.min.css" />
    <link rel="stylesheet" href="/css/input_tags.css"/>
    <!--时间选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.css">
    <!--日期选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datepicker/bootstrap-datepicker3.min.css">
    <link rel="stylesheet" href="/js/need/verfont.css" />
    <!-- 多选下拉 -->
    <link rel="stylesheet" href="/css/bootstrap-select.css" type="text/css"/>

    <link rel="stylesheet" href="/css/skin.css"/>
</head>
<body>
<div class="container-fluid p-t-15">
    <div class="row">
        <div class="col-sm-12">
            <div class="card">
                <div class="card-header">
                    <h1>转入管理</h1>
                </div>
                <div class="card-body">
                    <div class="row content-action">
                        <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
                            <!-- 全部 本周 本月 本年 -->
                            <div class="time-search pull-left">
                                <input type="hidden" id="dateType" name="dateType"/>
                                <div class="all active-second" onclick="selectTime('all')">全部</div>
                                <div class="today"  onclick="selectTime('today')">今天</div>
                                <div class="week"  onclick="selectTime('week')">本周</div>
                                <div class="month" onclick="selectTime('month')">本月</div>
                                <div class="year" onclick="selectTime('year')">本年</div>
                            </div>
                        </div>
                        <div class="col-lg-6 col-md-5 col-sm-5 col-xs-12">
                            <div class="pull-right">
                                <div class="min-search pull-left">
                                    <input class="form-control" type="text" placeholder="请输入客户名称"
                                           id="customerName" name="customerName">
                                    <button class="btn btn-primary" type="button" onclick="searchOrderList()">
                                        <i class="mdi mdi-magnify"></i><span>搜索</span>
                                    </button>
                                </div>
                                <button class="btn btn-default btn-senior" data-toggle="collapse" data-target="#filterContent"
                                        aria-expanded="false" aria-controls="filterContent"><i class="mdi mdi-sort-variant">
                                        </i>高级筛选
                                </button>
                                <button class="btn btn-default" data-toggle="collapse"
                                        data-target="#addPay" aria-expanded="false"
                                        aria-controls="addPay">
                                    <i class="mdi mdi-sort-variant"></i>新增转入额
                                </button>
                            </div>
                        </div>
                    </div>

                    <div class="collapse filter-content" id="filterContent">
                        <div class="row">
                            <div class="form-group col-lg-3 col-md-4 col-sm-6 col-xs-12">
                                <label for="customerName2">客户名称</label>
                                <div>
                                    <input class="form-control" type="text" placeholder="请输入客户名称" id="customerName2" name="customerName2" autocomplete="off">
                                </div>
                            </div>
                            <div class="form-group col-lg-3 col-md-4 col-sm-6 col-xs-12">
                                <label for="userName">所属人</label>
                                <div>
                                    <input class="form-control" type="text" placeholder="请输入所属人名称"
                                           id="userName" name="userName">
                                </div>
                            </div>
                            <div class="form-group col-lg-3 col-md-2 col-sm-4 col-xs-6">
                                <label for="companySelect">所属分公司</label>
                                <div>
                                    <select id="companySelect" name="companySelect" class="form-control" data-live-search="true">
                                        <option value="">请选择</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group col-lg-3 col-md-2 col-sm-4 col-xs-6">
                            </div>
                            <!--清空上个元素对换行的影响-->
                            <div class="clearfix hidden-xs"></div>
                            <div class="form-group col-lg-2 col-md-4 col-sm-6 col-xs-12">
                                <label>&nbsp;</label>
                                <div class="text-right">
                                    <button class="btn btn-primary" type="button" id="btn-search">
                                        <i class="mdi mdi-magnify"></i><span>搜索</span></button>
                                    <button class="btn btn-default" onclick="resetSearch()">重置</button>
                                </div>
                            </div>
                        </div>
                    </div>

                    <table id="customerPayFrom"></table>
                </div>
            </div>
        </div>
    </div>
</div>


<!-- 新增转入额 弹窗 -->
<div class="modal fade bs-example-modal-lg modal-edit" tabindex="-1" role="dialog" id="addPay">
    <div class="modal-dialog modal-lg" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h4>客户转入</h4>
            </div>
            <input type="hidden" id="cpFollowPlanIdHide">
            <div class="row content-action">
                <div class="form-group col-lg-3 col-md-4 col-sm-6 col-xs-12 col-pad">
                    <div class="form-content peers-display">
                        <select id="searchCustomer" name="searchCustomer" class="form-control selectpicker">
                            <option value="1">按客户名称搜索</option>
                            <option value="2">按客户编码搜索</option>
                        </select>
                    </div>
                </div>
                <div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">
                    <div class="pull-right">
                        <div class="min-search pull-left">
                            <input id="searchCustomerInput" type="text" class="form-control" placeholder="请输入客户名称/客户编码" autocomplete="off">
                            <button class="btn btn-primary" type="button" onclick="searchCustomer()">
                                <i class="mdi mdi-magnify"></i><span>搜索</span>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            <br>
            <div class="card-body">
                <table id="searchCustomerTable"></table>
            </div>
            <div class="row">
                <div class="clearfix hidden-xs"></div>
                <div class="form-group col-lg-2 col-md-4 col-sm-6 col-xs-12">
                    <label>&nbsp;</label>
                    <div class="text-right">
                        <button class="btn btn-primary" type="button" onclick="addShiftWallet()">
                            <span>提交</span></button>
                        <button class="btn btn-default" onclick="clearAllData()">取消</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- 修改转入额 弹窗 -->
<div class="modal fade bs-example-modal-lg modal-edit" tabindex="-1" role="dialog" id="updatePay">
    <div class="modal-dialog modal-lg" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h4>修改转入信息</h4>
            </div>
            <input type="hidden" id="customerPayIdHide">
            <input type="hidden" id="customerIdHide">
            <div class="row">
                <div class="form-group col-lg-4 col-md-4 col-sm-6 col-xs-12 col-pad">
                    <label for="customerInput2" class="control-label label-required">客户名称</label>
                    <div class="form-content peers-display">
                        <input id="customerInput2"  disabled type="text" class="form-control">
                        <!-- <select id="customerInput2" name="customerInput2" class="form-control selectpicker" data-live-search="true">
                             <option value="1">请选择</option>
                         </select>-->
                    </div>
                </div>
                <div class="form-group col-lg-4 col-md-4 col-sm-6 col-xs-12 col-pad">
                    <label for="customerInput2" class="control-label label-required">客户编号</label>
                    <div class="form-content peers-display">
                        <input id="customerNumber"  disabled type="text" class="form-control">
                    </div>
                </div>
                <div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">
                    <label class="control-label label-required" >转入金额</label>
                    <div class="form-content">
                        <input id="payMoney2" type="text" class="form-control" placeholder="请输入转入金额" autocomplete="off"
                               maxlength="8" onkeyup="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')">
                    </div>
                </div>
                <div class="clearfix hidden-xs"></div>
                <div class="form-group col-lg-2 col-md-4 col-sm-6 col-xs-12">
                    <label>&nbsp;</label>
                    <div class="text-right">
                        <button class="btn btn-primary" type="button" onclick="subUpdateCustomerPay()">
                            <span>提交</span></button>
                        <button class="btn btn-default" onclick="clearAllData()">取消</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

</body>
<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/js/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="/js/main.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table-zh-CN.min.js"></script>
<script type="text/javascript" src="/js/popper.min.js"></script>
<script type="text/javascript" src="/js/jquery.cookie.min.js"></script>
<script src="/js/crm/common/input-tag.js"></script>
<script src="/js/crm/common/city.js"></script>
<!--table固定列-->
<script type="text/javascript" src="/js/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.js"></script>
<!-- 拖动 -->
<script src="/js/bootstrap-table/extensions/resizable/bootstrap-table-resizable.min.js"></script>
<script src="/js/crm/common/colResizable-1.6.min.js"></script>

<!--时间选择插件-->
<script src="/js/bootstrap-datetimepicker/moment.min.js"></script>
<script src="/js/jquery-confirm/jquery-confirm.min.js"></script>
<script src="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script src="/js/bootstrap-datetimepicker/locale/zh-cn.js"></script>
<!--日期选择插件-->
<script src="/js/bootstrap-datepicker/bootstrap-datepicker.min.js"></script>
<script src="/js/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js"></script>
<script type="text/javascript" src="/js/crm/common/dataRangePicker.min.js"></script>
<script src="/js/verSelect.2.0.js"></script>
<!-- 多选框下拉 -->
<script type="text/javascript" src="/js/bootstrap-multiselect.js"></script>
<script type="text/javascript" src="/js/bootstrap-select.js"></script>
<script type="text/javascript" src="/js/bootstrap.lyear.dropdowntree.min.js"></script>
<!-- 子页面公用js -->
<script src="/js/crm/common/pageCommon.js"></script>
<script src="/js/crm/customerManager/customerShiftWallet.js"></script>
</html>